package com.autcar.training.service;

import com.autcar.training.dao.CountMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @ProjectName: training
 * @Package: com.autcar.training.service
 * @ClassName: CountServiceImpl
 * @Author: YHHHH
 * @Description:
 * @Date: 2020/9/2 17:54
 * @Version: 1.0
 */
@Service
public class CountServiceImpl implements CountService {
    @Resource
    private CountMapper countMapper;

    @Override
    public Integer customerCount() {
        Integer customerCount = countMapper.customerCount();
        return customerCount;
    }

    @Override
    public Integer orderCount() {
        Integer orderCount = countMapper.orderCount();

        return orderCount;
    }

    @Override
    public Integer goodsCount() {
        Integer goodsCount = countMapper.goodsCount();
        return goodsCount;
    }

    @Override
    public Integer workerCount() {
        Integer workerCount = countMapper.workerCount();
        return workerCount;
    }
}
